package com.example.pageexample;

import android.app.Application;
import android.content.Context;

public class PageApplication extends Application {
    private static PageApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        if(null == instance){
            instance = this;
        }
    }

    public static Context getInstance() {
        return instance.getApplicationContext();
    }
}
